@extends('layouts.admin')

@section('title', '修改栏目')

@section('nav', '修改栏目')

@section('content')
    <ul id="myTab" class="nav nav-tabs bar_tabs">
        <li>
            <a href="{{ url('admin/category') }}">栏目列表</a>
        </li>
        <li class="active">
            <a href="">修改栏目</a>
        </li>
    </ul>

    <form class="form-horizontal " action="{{ route('category.update', $data) }}" method="post">
        {{ csrf_field() }}
        @method('PUT')
        <table class="table table-striped table-bordered table-hover">
            <tr>
                <th>栏目名称</th>
                <td>
                    <input class="form-control" type="text" name="name" value="{{ $data['name'] }}">
                </td>
            </tr>
            <tr>
                <th>关键词</th>
                <td>
                    <input class="form-control" type="text" name="keywords" value="{{ $data['keywords'] }}">
                </td>
            </tr>
            <tr>
                <th>描述</th>
                <td>
                    <input class="form-control" type="text" name="description" value="{{ $data['description'] }}">
                </td>
            </tr>
            <tr>
                <th>排序</th>
                <td>
                    <input class="form-control" type="text" name="sort" value="{{ $data['sort'] }}">
                </td>
            </tr>
            <tr>
                <th></th>
                <td>
                    <input class="btn btn-success" type="submit" value="修改">
                </td>
            </tr>
        </table>
    </form>
@endsection
